package com.pig.graduate.domain.event;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig.graduate.domain.BaseEntity;
import com.pig.graduate.domain.CustomDateTimeSerializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 转舍
 * @TableName event_transfer_dormitory
 */
@TableName(value ="event_transfer_dormitory")
@Data
public class EventTransferDormitory extends BaseEntity implements Serializable {

    /**
     * 转舍日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING ,pattern ="yyyy-MM-dd HH:mm:ss")
    private Date tdDate;

    /**
     * 转出位置
     */
    @TableField(exist = false)
    private String buildingsOutName;

    private Long columnOut;

    @TableField(exist = false)
    private String columnOutName;

    @TableField(exist = false)
    //转出位置
    private String locationOut;

    /**
     * 耳号
     */
    private String earCode;

    /**
     * 转入位置
     */
    @TableField(exist = false)
    private String buildingsInName;
    private Long columnIn;

    @TableField(exist = false)
    private Long columnInName;

    @TableField(exist = false)
    //转入位置
    private String locationIn;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 重量
     */
    private Double weight;

    /**
     * 操作人员
     */
    private Long operatorsUser;

    @TableField(exist = false)
    private String operatorsUserName;


    /**
     * 转舍类型
     */
    private Integer tdPigType;

    /**
     * 转出猪群号
     */
    private String herdsPigsCodeOut;

    /**
     * 转入猪群号
     */
    private String herdsPigsCodeIn;

    @TableField(exist = false)
    private Date startTdTime;

    @TableField(exist = false)
    private Date endTdTime;

    /**
     * 主体数据（种猪 肉猪）
     */
    @TableField(exist = false)
    private List<Long> ids;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}